var routes = [
    {
        path: '/index',
        name: 'index',
        component: () => import('../views/Index.vue'),
        children:[
            {
                path: '/index/home',
                name: 'home',
                component: () => import('../views/Index/Home.vue')
            },
            {
                path: '/index/tuan',
                name: 'tuan',
        
                component: () => import('../views/Index/Tuan.vue')
            },
            {
                path: '/index/order',
                name: 'order',
        
                component: () => import('../views/Index/Order.vue')
            },
            {
                path: '/index/mine',
                name: 'mine',
        
                component: () => import('../views/Index/Mine.vue')
            },
        ]
    },
   
    {
        path: '/',
        redirect: '/index' //重定向
    },
    
]

export default routes